package com.i18n.plugin.store

import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.vfs.VirtualFile

class ScanFileStore : PersistentStateComponent<ScanFileStore.State> {

    /**
     * 状态类
     */
    class State {
        /**
         * 文件列表
         */
        val scanFiles = ArrayList<VirtualFile>()
    }

    private var state = State()

    /**
     * 获取状态
     *
     * @return 状态对象
     */
    override fun getState(): State {
        return this.state
    }

    /**
     * 加载状态
     *
     * @param p0 状态对象
     */
    override fun loadState(p0: State) {
        this.state = p0
    }
}
